﻿<!DOCTYPE html>
<html lang="en-us">
<head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <link rel="icon" href="favicon.ico" />
    <!--jquery库-->
    <script src="js/jquery.min.js"></script>
    <!--bootstrap库-->
    <link href="css/bootstrap.min.css" rel="stylesheet" />
    <script src="js/bootstrap/bootstrap.min.js"></script>
    <!--[if lt IE 9]>
      <script src="js/bootstrap/html5shiv.min.js"></script>
      <script src="js/bootstrap/respond.min.js"></script>
    <![endif]-->
    <!--font-awesome字体库-->
    <link href="css/font-awesome.min.css" rel="stylesheet" />
    <!--页面加载进度条-->
    <link href="css/pace/dataurl.css" rel="stylesheet" />
    <script src="js/pace/pace.min.js"></script>
    <!--平滑滚动到顶部库-->
    <script src="js/jquery.scrolltopcontrol/scrolltopcontrol.js" type="text/javascript"></script>
    <!--主要写的jquery拓展方法-->
    <script src="js/jquery.extend.js" type="text/javascript"></script>
    <!--主要写的css代码-->
    <link href="css/default.css" rel="stylesheet" type="text/css" />
    <!--主要写的js代码-->
    <script src="js/default.js" type="text/javascript"></script>
</head>
<body>
    <nav class="navbar navbar-inverse navbar-fixed-top">
        <div class="container-fluid">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle show pull-left" data-target="sidebar">
                    <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span>
                </button>
                <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar"
                        aria-expanded="false" aria-controls="navbar">
                    <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="index.html">Bootstrap</a>
            </div>
            <div id="navbar" class="collapse navbar-collapse">
                <ul class="nav navbar-nav">
                    <li><a href="top1.html">top1.html</a></li>
                    <li><a href="top2.html">top2.html</a></li>
                    <li><a href="top3.html">top3.html</a></li>
                    <li><a href="https://github.com/shihao316558512/bootstrap" target="_blank"><i class="fa fa-download fa-fw"></i>&nbsp;原码下载</a></li>
                </ul>
                <ul class="nav navbar-nav navbar-right">
                    <li class="dropdown">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button"
                           aria-expanded="false"><i class="fa fa-user fa-fw"></i>
                           <span class="username"></span>
                           <span class="caret"></span></a>
                        <ul class="dropdown-menu" role="menu">
                            <li><a href="top-right1.html">top-right1.html</a></li>
                            <li class="divider"></li>
                            <li><a href="top-right2.html">top-right2.html</a></li>
                            <li class="divider"></li>
                            <li><a href="top-right3.html"><i class="fa fa-sign-out fa-fw"></i>&nbsp;top-right3.html</a></li>
                        </ul>
                    </li>
                </ul>
            </div>
        </div>
    </nav>
    <div class="container-fluid all">
        <div class="sidebar">
            <ul class="nav">
                <li><a href="index.html">主页面</a></li>
                <li><a href="form.html">Form库</a></li>
                <li><a href="message.html">Message库</a></li>
                <li><a href="ui.html">UI库</a></li>
                <li><a href="animate.html">Animate库</a></li>
                <li><a href="carousel.html">Carousel库</a></li>
                <li><a href="chart.html">Chart库</a></li>
                <li class="has-sub">
                    <a href="javascript:void(0);"><span>导航选中演示</span><i class="fa fa-caret-right fa-fw pull-right"></i></a>
                    <ul class="sub-menu">
                        <li><a href="left1.html"><i class="fa fa-circle-o fa-fw"></i>&nbsp;left1</a></li>
                        <li><a href="left2.html"><i class="fa fa-circle-o fa-fw"></i>&nbsp;left2</a></li>
                        <li><a href="left3.html"><i class="fa fa-circle-o fa-fw"></i>&nbsp;left3及子页面</a></li>
                    </ul>
                </li>
            </ul>
        </div>
        <div class="maincontent row form-horizontal">
            <!--我是主要内容 start-->
            <ul class="breadcrumb">
                <li class="active">Message库</li>
            </ul>
            <div class="col-sm-12">
                <!--通知插件toastr start-->
                <div class="row" id="message-toastr">
                    <div class="page-header text-center">
                        <h2>通知插件1</h2>
                    </div>
                    <div class="col-sm-6">
                        <div class="form-group">
                            <label for="inputEmail3" class="col-sm-2 control-label">插件名</label>
                            <div class="col-sm-10">
                                <p class="form-control-static">
                                    Toastr
                                </p>
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-6">
                        <div class="form-group">
                            <label for="inputEmail3" class="col-sm-2 control-label">官网</label>
                            <div class="col-sm-10">
                                <a href="http://codeseven.github.io/toastr/" class="btn btn-info" target="_blank">http://codeseven.github.io/toastr/</a>
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-12">
                        <div class="form-group">
                            <label for="inputEmail3" class="col-sm-1 control-label">特殊说明</label>
                            <div class="col-sm-11">
                                <p class="form-control-static">该插件依赖jquery库</p>
                            </div>
                        </div>
                    </div>
                    <div class="clearfix"></div>
                    <link href="css/jquery.toastr/toastr.min.css" rel="stylesheet" />
                    <script src="js/jquery.toastr/toastr.min.js"></script>
                    <style>
                        .toast-top-right { top: 62px; }
                    </style>
                    <script>
                        $(function () {
                            $("#btnShowMsg1").click(function () {
                                toastr.options = {
                                    "progressBar": true
                                }
                                toastr.info('Are you the 6 fingered man?');
                            })
                        })
                    </script>
                    <div class="col-sm-6">
                        <div class="form-group">
                            <label for="inputEmail3" class="col-sm-2 control-label">使用效果</label>
                            <div class="col-sm-10">
                                <a class="btn btn-info" id="btnShowMsg1">点我</a>
                            </div>
                        </div>
                    </div>
                </div>
                <!--通知插件toastr end-->
                <!--通知插件sweetalert start-->
                <div class="row" id="message-sweetalert">
                    <div class="page-header text-center">
                        <h2>通知插件2</h2>
                    </div>
                    <div class="col-sm-6">
                        <div class="form-group">
                            <label for="inputEmail3" class="col-sm-2 control-label">插件名</label>
                            <div class="col-sm-10">
                                <p class="form-control-static">
                                    SweetAlert for Bootstrap
                                </p>
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-6">
                        <div class="form-group">
                            <label for="inputEmail3" class="col-sm-2 control-label">官网</label>
                            <div class="col-sm-10">
                                <a href="https://lipis.github.io/bootstrap-sweetalert/" class="btn btn-info" target="_blank">https://lipis.github.io/bootstrap-sweetalert/</a>
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-12">
                        <div class="form-group">
                            <label for="inputEmail3" class="col-sm-1 control-label">特殊说明</label>
                            <div class="col-sm-11">
                                <p class="form-control-static">该插件依赖bootstrap库</p>
                            </div>
                        </div>
                    </div>
                    <div class="clearfix"></div>
                    <link href="css/bootstrap.sweetalert/sweet-alert.css" rel="stylesheet" />
                    <script src="js/bootstrap.sweetalert/sweet-alert.min.js"></script>
                    <script>
                        $(function () {
                            $("#btnShowMsg2").click(function () {
                                swal("Here's a message!");
                            })
                        })
                    </script>
                    <div class="col-sm-6">
                        <div class="form-group">
                            <label for="inputEmail3" class="col-sm-2 control-label">使用效果</label>
                            <div class="col-sm-10">
                                <a class="btn btn-info" id="btnShowMsg2">点我</a>
                            </div>
                        </div>
                    </div>
                </div>
                <!--通知插件sweetalert end-->
            </div>
            <!--我是主要内容 end-->
        </div>
    </div>
    <a href="#top" id="goTop"><i class="fa fa-angle-up fa-3x"></i></a>
    <a href="https://github.com/shihao316558512">
        <img class="forkme" src="image/forkme.png" alt="Fork me on GitHub">
    </a>
    <script>
        //获取当前登录用户信息
        $(document).ready(function () {
            $.ajax({
                method: 'POST',
                url: '/csfy/intf.do',
                data: { method: 'getLoginUserInfo' },
                success: res => {
                    if (res.code == 10086) {
                        alert("请重新登录！");
                    } else {
                        if (res.code == 200) {
                            $(".username").html(res.rows.userName);
                        }
                    }
                }
            })
        })
    </script>
</body>
</html>
